import FileRename as gt
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow


if __name__ == '__main__':
    app = QApplication(sys.argv)
    mainForm = QtWidgets.QMainWindow()
    ui = gt.Ui_RenameFile()  # 创建PyQt设计的窗体对象
    ui.setupUi(mainForm)  # 调用PyQt窗体的方法对窗体对象进行初始化设置
    mainForm.show()  # 显示窗体
    sys.exit(app.exec_())  # 程序关闭时退出进程